set(MODULE utils)

aux_source_directory(. DIRSRCS)
aux_source_directory(./threads/ DIRSRCS)
#aux_source_directory(./worker/ DIRSRCS)
#aux_source_directory(./cppDES/cppDES/ DIRSRCS)
include_directories(
	./
	../include)

add_library(${MODULE} ${DIRSRCS})
if (DAS_ACQUIRE OR DAS_CLIENT)
  target_link_libraries(${MODULE} sqlite3 crypto)
endif()
target_link_libraries(${MODULE} pthread rt  inifile2 event)
#target_link_libraries(${MODULE} ${CMAKE_BINARY_DIR}/thirdparty/Libevent/lib/libevent.a)
#target_link_libraries(${MODULE} ${CMAKE_BINARY_DIR}/thirdparty/Libevent/lib/libevent_pthreads.a)
